<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:85:"D:\phpStudy\WWW\JiaoYuAPP\public/../application/admin\view\admintoken\token_edit.html";i:1507714900;s:75:"D:\phpStudy\WWW\JiaoYuAPP\public/../application/admin\view\public\base.html";i:1501913354;s:75:"D:\phpStudy\WWW\JiaoYuAPP\public/../application/admin\view\public\meta.html";i:1506652870;s:77:"D:\phpStudy\WWW\JiaoYuAPP\public/../application/admin\view\public\footer.html";i:1506653164;}*/ ?>
<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="favicon.ico" >
    <link rel="Shortcut Icon" href="favicon.ico" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="__STATIC__/lib/html5.js"></script>
    <script type="text/javascript" src="__STATIC__/lib/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="__STATIC__/admin/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="__STATIC__/admin/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="__STATIC__/admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="__STATIC__/admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="__STATIC__/admin/static/h-ui.admin/css/style.css" />
    <!--导入boostrap-->
    <link rel="stylesheet" href="__STATIC__/admin/lib/bootstrap/css/bootstrap.min.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <!--/meta 作为公共模版分离出去-->


<title><?php echo (isset($title) && ($title !== '')?$title:"标题"); ?></title>
<meta name="keywords" content="<?php echo (isset($keywords) && ($keywords !== '')?$keywords:'关键字'); ?>">
<meta name="description" content="<?php echo (isset($desc) && ($desc !== '')?$desc:'描述'); ?>">

</head>
<body>





<form action="" method="post" class="form form-horizontal" id="form-student-edit">
<article class="cl pd-20">

    <form class="Hui-article">
        <article class="cl pd-20">

            <table class="table table-border table-bordered table-bg mt-20">

                <thead>
                <tr>
                    <th colspan="2" scope="col">环信信息</th>
                </tr>
                </thead>

                <tbody>
                <tr>
                    <th width="30%">client_id</th>
                    <td><span id="lbServerName"><input style="border:#FFFFFF 2px;width:500px;" name="client_id" value="<?php echo $att['client_id']; ?>"/></span></td>
                </tr>
                <tr>
                    <td>client_secret</td>
                    <td><input style="border:#FFFFFF 2px;width:500px;" name="client_secret" value="<?php echo $att['client_secret']; ?>"/></td>
                </tr>
                <tr>
                    <td>org_name</td>
                    <td><input style="border:#FFFFFF 2px;width:500px;" name="org_name" value="<?php echo $att['org_name']; ?>"/></td>
                </tr>
                <tr>
                    <td>app_name </td>
                    <td><input style="border:#FFFFFF 2px;width:500px;" name="app_name" value="<?php echo $att['app_name']; ?>"/></td>
                </tr>

                <tr>
                    <td>access_token </td>
                    <td><input style="border:#FFFFFF 2px;width:500px;" name="access_token" value="<?php echo $att['access_token']; ?>"/></td>
                </tr>
                <tr>
                    <td>expires_in</td>
                    <td><input style="border:#FFFFFF 2px;width:500px;" disabled name="access_token" value="<?php echo $att['expires_in']; ?>"/></td>
                </tr>
                <tr>
                    <td>application</td>
                    <td><input style="border:#FFFFFF 2px;width:500px;" disabled name="access_token" value="<?php echo $att['application']; ?>"/></td>
                </tr>
                <tr>
                    <td>更新时间</td>
                    <td><input style="border:#FFFFFF 2px;width:500px;" disabled name="access_token" value="<?php echo $attDate; ?>"/></td>
                </tr>
                </tbody>

            </table>
            <div class="cl pd-5 bg-1 bk-gray mt-20">
				<span class="l">
					<input class="btn btn-primary radius " type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" id="submit" >
				</span>
            </div>
        </article>
    </form>


<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="__STATIC__/admin/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="__STATIC__/admin/static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="__STATIC__/admin/static/h-ui.admin/js/H-ui.admin.page.js"></script>
<!--导入boostrap-->
<script type="text/javascript" src="__STATIC__/admin/lib/bootstrap/js/bootstrap.min.js"></script>

<!--/_footer /作为公共模版分离出去-->


<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__STATIC__/admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="__STATIC__/admin/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__STATIC__/admin/lib/jquery.validation/1.14.0/messages_zh.js"></script>




<script>

    $(function(){

        //ajax方式提交当前表单数据
        $("#submit").on("click", function(event){

            $.ajax({
                type: "POST",
                url: "<?php echo url('Admintoken/token_edits'); ?>",
                data: $("#form-student-edit").serialize(),
                dataType: "json",
                success: function(data){
                    if (data.status == 1) {
                        alert(data.message);
                        window.parent.location.reload();
                        parent.layer.close(index);

                    } else {
                        alert(data.message);

                    }
                }
            });

        })

    })
</script>

</body>
</html>